<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\AuctionOrmTrait;
use Illuminate\Database\Eloquent\SoftDeletes;

class AuctionModel extends Entity
{
    use SoftDeletes, AuctionOrmTrait;

    protected $table = 'auction';

    protected $casts = ['tag' => 'json', 'main_img_ids' => 'json', 'desc_img_ids' => 'json', 'one_push' => 'json', 'two_push' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'status',
        'sell_out',
        'expired',
        'audit_status',
        'file_id',
        'title',
        'market_price',
        'category_id_one',
        'category_id_two',
        'category_id_three',
        'is_protect',
        'is_feral',
        'brand',
        'stage',
        'gene',
        'tag',
        'remark',
        'eat',
        'guide',
        'start_price',
        'current_price',
        'bail_price',
        'capping_price',
        'start_at',
        'end_at',
        'is_start',
        'is_end',
        'source_number',
        'inc',
        'freight',
        'publish_id',
        'description',
        'push_switch',
        'ok_reason',
        'fail_reason',
        'audit_at',
        'sort',
        'recommend',
        'shot_count',
        'user_count',
        'main_img_ids',
        'desc_img_ids',
        'video_id',
        'one_push_status',
        'one_push',
        'two_push',
        'created_at',
        'updated_at',
        'deleted_at'
    ];
}
